import Vue from 'vue'
import Router from 'vue-router'
import Search from '@/components/Search'
import CertificateInfo from '@/components/CertificateInfo'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Search',
      component: Search,
      meta: '查询证书'
    },
    {
      path: '/certificate/:certNo/',
      name: 'CertificateInfo',
      component: CertificateInfo,
      meta: '证书详情'
    }
  ]
})
